import CptFlowDesign from './main.vue'
import CptFlowViewer from './components/viewer'

// bpmn样式
import 'bpmn-js/dist/assets/diagram-js.css';
import 'bpmn-js/dist/assets/bpmn-js.css';
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
import "diagram-js-minimap/assets/diagram-js-minimap.css";
import "bpmn-js-color-picker/colors/color-picker.css";
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css"
import 'bpmn-js-bpmnlint/dist/assets/css/bpmn-js-bpmnlint.css';

// 高亮
import hljsVuePlugin from "./highlight/index"
import "highlight.js/styles/atom-one-dark-reasonable.css";

if (typeof window !== "undefined" && window.Vue) {
    window.Vue.component('pu-bpmn-design', CptFlowDesign);
    window.Vue.component('pu-flow-viewer', CptFlowViewer);
    window.Vue.use(hljsVuePlugin);
}

const install = (Vue) => {
    Vue.component('pu-bpmn-design', CptFlowDesign);
    Vue.component('pu-flow-viewer', CptFlowViewer);
    Vue.use(hljsVuePlugin);
}
export default install


